package com.lftea.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.IStockPileDAO;
import com.lftea.po.StockPile;
import com.lftea.service.IStockPileService;

@Service("stockPileSeviceImpl")
@RemotingDestination
public class StockPileSeviceImpl implements IStockPileService {

	@Resource(name = "stockPileDAOImpl")
	private IStockPileDAO stockPileDAOImpl;
	
	@RemotingInclude
	public List<StockPile> findAll() {
		return stockPileDAOImpl.findAll();
	}

	@RemotingInclude
	public StockPile findById(long stockPileId) {
		return stockPileDAOImpl.findById(stockPileId);
	}

	@RemotingInclude
	public void remove(StockPile stockPile) {
		stockPileDAOImpl.remove(stockPile);
	}

	@RemotingInclude
	public void save(StockPile stockPile) {
		stockPileDAOImpl.save(stockPile);		
	}

}
